<!DOCTYPE html>
<html>

	<head>

		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/base.css" />
		<link rel="stylesheet" type="text/css" href="css/newessay1.css" />

		<script type="text/javascript" src="js/tinymce.min.js"></script>
		<script src="js/jquery.js"></script>
		<script type="text/javascript">
			tinymce.init({
				selector: "textarea#elm1",
				theme: "modern",
				width: '99%',
				height: 300,
				language: "zh_CN",
				plugins: [
					"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
					"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
					"save table contextmenu directionality emoticons template paste textcolor"
				],
				content_css: "css/content.css",
				toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l      ink image | print preview media fullpage | forecolor backcolor emoticons",
				style_formats: [{
						title: 'Bold text',
						inline: 'b'
					},
					{
						title: 'Red text',
						inline: 'span',
						styles: {
							color: '#ff0000'
						}
					},
					{
						title: 'Red header',
						block: 'h1',
						styles: {
							color: '#ff0000'
						}
					},
					{
						title: 'Example 1',
						inline: 'span',
						classes: 'example1'
					},
					{
						title: 'Example 2',
						inline: 'span',
						classes: 'example2'
					},
					{
						title: 'Table styles'
					},
					{
						title: 'Table row 1',
						selector: 'tr',
						classes: 'tablerow1'
					},
				]
			});
		</script>
	</head>

	<body>
		<div id="header">
			<div class="topcolor"></div>
			<div class="header-top clearfix">
				<div class="logo fl">
					<img src="img/adminlogo.gif" />
				</div>
				<div class="blogname fr">
					<a href="#">只会敲代码的攻城狮</a>
				</div>
			</div>
			<div class="title">
				随笔
			</div>
		</div>

		<div id="main" class="clearfix">
			<div>
				<div class="leftnavheader fl">
					操作
				</div>
				<div class="rightblank">
				</div>
			</div>
			<div class="mainwrap">
				<div class="main-con fl">
					<ul class="main-left">
						<li>
							<a href="#" onclick="flush(1);">» 添加新随笔</a>
						</li>
						<li>
							<a href="#" onclick="flush(2);">» 草稿箱</a>
						</li>
					</ul>

				</div>
				<div class="main-right">
					<iframe id="blognav" name="blognav" frameborder=0 width="100%" height=1000 marginheight=0 marginwidth=0 scrolling=no src="newessay_draft.html"></iframe> 
				</div>
			</div>
		</div>
	</body>
	<script>
		function flush(num){
			if(num==1){
				$("#blognav").attr("src","newessay_edit.html");
			}
			if(num==2){
				$("#blognav").attr("src","newessay_draft.html");
			}
		}
	</script>
</html>